package com.teama4.shop.service;

import com.teama4.shop.domain.FirstType;
import com.teama4.shop.domain.FirstTypeExample;
import com.teama4.shop.mapper.FirstTypeMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class FirstTypeServiceImpl implements FirstTypeService {
    @Autowired
    private FirstTypeMapper firstTypeMapper;
    @Override
    public long countByExample(FirstTypeExample example) {
        return firstTypeMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(FirstTypeExample example) {
        return firstTypeMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return firstTypeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(FirstType record) {
        return firstTypeMapper.insert(record);
    }

    @Override
    public int insertSelective(FirstType record) {
        return firstTypeMapper.insertSelective(record);
    }

    @Override
    public List<FirstType> selectByExample(FirstTypeExample example) {
        return firstTypeMapper.selectByExample(example);
    }

    @Override
    public FirstType selectByPrimaryKey(Integer id) {
        return firstTypeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(FirstType record, FirstTypeExample example) {
        return firstTypeMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(FirstType record, FirstTypeExample example) {
        return firstTypeMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(FirstType record) {
        return firstTypeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(FirstType record) {
        return firstTypeMapper.updateByPrimaryKey(record);
    }
}
